import base from '@/api/baseurl';
import request from '@/utils/request'
/**
 * 查询当前转移曲线下的期限点信息
 * @param {*} query 
 * @returns 
 */
export function fetchLisTransfercurvezi(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findtransfercurvezi',
    method: 'get',
    params: query
  })
}

/**
 * 单行删除
 * @param {*} query 
 * @returns 
 */
export function deletetransfercurvezi(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/deletetransfercurvezi',
    method: 'get',
    params: query
  })
}

/**
 * 增加转移曲线期限信息
 * @param {*} data 
 * @returns 
 */
export function addtransfercurvezi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/addtransfercurvezi',
    method: 'post',
    data
  })
}
/**
 * 修改转移曲线期限信息
 * @param {*} data 
 * @returns 
 */
export function updatetransfercurvezi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/updatetransfercurvezi',
    method: 'post',
    data
  })
}

/**
 * 获取曲线期限列表 /CurveTerm/queryTermScheme
 * @param {*} query
 * @returns
 */
export function curveTermQueryTermScheme(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveTerm/queryTermScheme',
    method: 'get',
    params: query
  })
}


/**
 * 获取曲线期限设置列表 /CurveTerm/queryTermPrice
 * @param {*} query
 * @returns
 */
export function curveTermQueryTermPrice(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveTerm/queryTermPrice',
    method: 'get',
    params: query
  })
}


/**
 * 转移曲线期限点排序数组
 * @param {*} query  转移曲线 commonpid （主页面id)
 * @returns
 */
 export function findTransfercurvetermlist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findTransfercurvetermlist',
    method: 'get',
    params: query
  })
}